#ifdef sm
struct {
	uint8_t cursor;
} xx;
#else
void cs_on_init(void);
void fc_on_init(void);
void ms_on_init(void);
void zz_on_init(void);

void xx_on_keydown(uint8_t key) {
	switch (key) {
	case 0: cs_on_init(); break;
	case 1: fc_on_init(); break;
	case 2: ms_on_init(); break;
	case 29: zz_on_init(); break;
	}
}

void xx_on_init(void) {
	lcd_clear_button_text();
	lcd_set_button_text(0, L"cs");
	lcd_set_button_text(1, L"fc");
	lcd_set_button_text(2, L"ms");
	lcd_set_button_text(29, L"zz");
	on_keydown = xx_on_keydown;
	lcd_clear();
	draw_text(0, 0, "Menu");
	lcd_flush();
}
#endif
